﻿//
// Created by Administrator on 2020/8/21.
//
#include "Time.h"

int main() {

    Time time1(100);
    Time time2(99);

    Time time = time1 + time2;

    time.show();
    (time + 10).show();
    (20 + time).show();

    std::cout << time;

    // 通过构造函数 Time(int) 可以把 int 类型转化成 Time 类型
    time = 999;
    std::cout << time;

    int minutes = (int) time;

    std::cout << minutes;
}
